package com.smz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TReservoir {


    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    private String goodsNo;
    private String goodsName;
    private String wareId;
    private int shelvesNum;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp dateTime;
    private String area;
    @TableField(value = "`status`")
    private int status;
    @TableField(value = "`describe`")
    private String describe;

    @TableField(exist = false)
    private List<TShelves> listTShelvesCls;
    //dy
    @TableField(exist = false)
    private  TMenu tMenu;
    @TableField(exist = false)
    private List<TShelves> tShelves;
}
